package Sudoku3.rules;

import Sudoku3.structure.cell;



public class rule01_explicit_value {
	
	public rule01_explicit_value(cell c) {
		//value has been set, but possibilites have not been updated
		//this should ideally never happen
		int v = c.getValue();
		if ( (c.isSolved()) && (!(c.toInt() == (int)Math.pow(2, v-1) )) ) {
			c.setValue(v);
//			System.out.println("Rule 01:  Explicit Value(" + v + ") found for cell(" + c.toStringCoords() + ").  Removing all other possibilities.");
		}
	}

}
